<?php
/**
 * TomatoCMS
 *
 * LICENSE
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE Version 2
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-2.0.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@tomatocms.com so we can send you a copy immediately.
 *
 * @copyright	Copyright (c) 2009-2010 TIG Corporation (http://www.tig.vn)
 * @license		http://www.gnu.org/licenses/gpl-2.0.txt GNU GENERAL PUBLIC LICENSE Version 2
 * @version 	$Id: send.phtml 3930 2010-07-24 17:12:20Z huuphuoc $
 * @since		2.0.6
 */
?>
<?php
$this->headTitle($this->translator('mail_details_page_title'));
$this->headLink()->appendStylesheet($this->APP_STATIC_SERVER . '/skins/admin/default/css/mail.css');
?>

<div id="r-heading">
    <img src="<?php echo $this->APP_STATIC_SERVER . '/skins/admin/default/images/mail-48x48.png'; ?>" alt=""/>
    <span><?php echo $this->translate('mail_details_page_title'); ?></span>
</div>

<?php
//nếu có message thì hiển thị
if(!empty($this->message)){
	echo '<div id="message">'.$this->message.'</div>';
}
?>

<div id="actions">
    <input type="button" id="btnList" class="button" value="<?php echo $this->translate('mail_back_to_list') ?>" onclick="location = '<?php echo $this->url(array(), 'mail_mail_list');?>';"/>
    <input type="button" id="btnCreate" class="button" value="<?php echo $this->translate('mail_compose') ?>" onclick="location = '<?php echo $this->url(array(), 'mail_mail_send');?>';"/>
    <input type="button" id="btnDelete" class="button" value="<?php echo $this->translate('mail_reply')?>"/>
</div>
<div id="mail-details">
    <ul class="mail-meta">
        <li><span><?php echo $this->translate('mail_details_subject')?></span>: <?php echo $this->mail->subject?></li>
        <li><span><?php echo $this->translate('mail_details_from')?></span>: <?php echo $this->mail->from_name?> (<?php echo $this->mail->from_mail?>)</li>
        <li><span><?php echo $this->translate('mail_details_to')?></span>: <?php echo $this->mail->to_name?> (<?php echo $this->mail->to_mail?>)</li>
        <li><span><?php echo $this->translate('mail_details_sent_date')?></span>: <?php echo date('d-m-Y', strtotime($this->mail->sent_date))?></li>
        <li>
            <span class="block"><?php echo $this->translate('mail_details_content')?></span>
            <div class="mail-content">
                <?php echo $this->mail->content?>
            </div>
        </li>
    </ul>
</div>

